// 宿管信息
import request from '@/utils/request'

// 获取宿管信息
export function getHousemaster(data) {
  console.log(data)
  return request({
    url: '/housemaster/getPage',
    method: 'post',
    data: data
  })
}
// 删除宿管信息
export function deleteHousemaster(id) {
  return request({
    url: `/housemaster/delete/${id}`,
    method: 'get',
    headers: {
      'Content-Type':'application/x-www-form-urlencoded'
    }
  })
}
// 添加宿管信息
export function addHousemaster(data) {
  console.log(data)
  return request({
    url: '/housemaster/save',
    method: 'post',
    data: data
  })
}
// 更新宿管信息
export function updateHousemaster(data) {
  console.log(data)
  return request({
    url: '/housemaster/update',
    method: 'post',
    data: data
  })
}
// 更新宿管管理楼栋
export function updateRoomHousemaster(data) {
  console.log(data)
  return request({
    url: '/housemaster/updateRoom',
    method: 'post',
    data: data
  })
}
// 安排宿舍楼栋
export function saveRoomHousemaster(data) {
  console.log(data)
  return request({
    url: '/housemaster/saveRoom',
    method: 'post',
    data: data
  })
}